import actions from './actions'
import mutations from './mutations'

const state = {
	current_brand: null,
	aduit_users: [],
	sale_List:[],
	departmentAndRoles: []
}

const getters = {
	sale_List:state=>state.sale_List,
	aduit_users: state => state.aduit_users,
	departmentAndRoles: state => state.departmentAndRoles,
	current_brand: (state, getters, rootState, rootGetters) => {
		let current_user = rootGetters.current_user
		return {
			id: current_user.company_id,
			name: current_user.company_name,
			logo: current_user.company_logo
		}
	}
}

const brand = {
	namespaced: true,
	state: state,
	getters: getters,
	actions: actions,
	mutations: mutations
}

export default brand